package com.zqwh.yj.sdk.utils;

import android.content.Context;
import android.content.res.Configuration;
import android.content.res.Resources;

import java.util.Locale;

public class LanguageUtil {
    public static void changeLanguage(Context context, Locale locale) {
        Resources resource = context.getResources();
        Configuration configuration = resource.getConfiguration();
        configuration.locale = locale;
        resource.updateConfiguration(configuration, resource.getDisplayMetrics());
    }
}
